package day13;

public class TestUser {
    public static void main(String[] args) {
        User guanyu1 = new User("关羽", "123456", 1);
        User guanyu2 = new User("关羽", "123456", 1);
        System.out.println(guanyu1.equals(guanyu2));
        System.out.println(guanyu1.hashCode());
        System.out.println(guanyu2.hashCode());
        // Java规范建议  eq相等的时候，保证hashcode也要相等。
        // jdk HashMap  Hashtable Hash....
    }
}
